﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolesAuthorizedPage.aspx.cs"
    Inherits="OA.Web.Authority.RolesAuthorizedPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色授权</title>
    <link href="../Css/childindex.css" rel="stylesheet" type="text/css" />
    <link href="../Css/GridView.css" rel="stylesheet" type="text/css" />
    <link href="../Css/index.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="TitlePanel" runat="server" CssClass="titlePadding">
        角色授权
    </asp:Panel>
    <div id="strinfo" runat="server" class="mbox pbox" visible="false">
        &nbsp;</div>
    <div class="gv">
        <table border="0" cellpadding="00" cellspacing="2">
            <tr>
                <td style="white-space: nowrap;" valign="top">
                    <div style="height: 24px; line-height: 24px;">
                        <asp:DropDownList ID="RoleList" runat="server" OnSelectedIndexChanged="RoleList_SelectedIndexChanged"
                            AutoPostBack="True">
                        </asp:DropDownList>
                        <asp:Label ID="Rid" runat="server" Text="" Style="display: none;"></asp:Label>
                    </div>
                    <div style="margin-top: 5px;">
                        &nbsp;</div>
                </td>
                <td style="white-space: nowrap;" valign="top">
                    <div style="height: 24px; line-height: 24px;">
                        <div class="rowdiv">
                            <asp:DropDownList ID="ModuleTypeList" runat="server" Enabled="false" AutoPostBack="True"
                                OnSelectedIndexChanged="ModuleTypeList_SelectedIndexChanged">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div style="margin-top: 5px;">
                        <asp:GridView ID="ModuleView" runat="server" DataKeyNames="ModuleID" CssClass="Grid"
                            AllowSorting="True" AutoGenerateColumns="False" OnRowDataBound="ModuleView_RowDataBound"
                            OnSelectedIndexChanging="ModuleView_SelectedIndexChanging">
                            <FooterStyle CssClass="GridFooter" />
                            <RowStyle CssClass="Row" />
                            <Columns>
                                <asp:TemplateField HeaderText="模块名称">
                                    <ItemTemplate>
                                        <asp:Label ID="lab_ID" runat="server" Text='<%# Eval("ModuleID")%>' Style="display: none"></asp:Label>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("ModuleName") %>'></asp:Label>
                                        <asp:Label ID="lab_Verify" runat="server" Text="" Style="display: none"></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" Wrap="False" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="权限列表">
                                    <ItemTemplate>
                                        <asp:CheckBoxList ID="AuthorityList" runat="server" RepeatDirection="Horizontal"
                                            RepeatLayout="Flow">
                                        </asp:CheckBoxList>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" />
                                    <ItemStyle Wrap="False" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText=" 更新 ">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btn_update" runat="server" CommandArgument='<%# Eval("ModuleID")%>'
                                            CausesValidation="False" CommandName="Select" Text="更新"></asp:LinkButton>
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" />
                                    <ItemStyle Wrap="False" />
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="HeadingCell" />
                            <AlternatingRowStyle BorderStyle="None" CssClass="AlternatingRow" />
                        </asp:GridView>
                    </div>
                    <div style="height: 24px; line-height: 24px; margin-top: 5px;">
                        <asp:Button ID="btn_AllSave" runat="server" CssClass="smallbtn" Text="保存全部" OnClick="btn_AllSave_Click" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
